PEPrintWindow

Use PEPrintWindow to print the report that is displayed in the preview window. This function can be used in a Custom-Print Link to enable the user to preview the report in the preview window, and then, if everything looks satisfactory, to print the report to the printer in response to a user event.

C Syntax
BOOL CRPE_API PEPrintWindow (
        short printJob,
        BOOL waitUntilDone );
Parameters

printJob

Specifies the print job displayed in the preview window that you want to print.

waitUntilDone

BOOL. Reserved. This parameter must always be set to TRUE.

Returns
VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEPrintWindow Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal WaitNoWait As Integer ) As Integer
Delphi Syntax
function PEPrintWindow (
    printJob: Word;
    waitUntilDone: Bool
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PEPrintWindow (CWORD, CLOGICAL) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com